/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.railway.classes;

import java.util.Objects;

/**
 *
 * @author Kenny
 */
public class Schedule {

    private Integer shid;
    private String scheduleName;

    public Schedule() {
    }

    public Schedule(Integer shid, String scheduleName) {
        this.shid = shid;
        this.scheduleName = scheduleName;
    }

    public Integer getShid() {
        return shid;
    }

    public void setShid(Integer shid) {
        this.shid = shid;
    }

    public String getScheduleName() {
        return scheduleName;
    }

    public void setScheduleName(String scheduleName) {
        this.scheduleName = scheduleName;
    }

    @Override
    public String toString() {
        return scheduleName;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 43 * hash + Objects.hashCode(this.shid);
        hash = 43 * hash + Objects.hashCode(this.scheduleName);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Schedule other = (Schedule) obj;
        if (!Objects.equals(this.shid, other.shid)) {
            return false;
        }
        return true;
    }
    
    
}
